﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Resources;

namespace SketchTour.Models
{
    [MetadataTypeAttribute(typeof(MSGF00Models.MSGF00ModelsMetadata))]
    public partial class MSGF00Models
    {
        public long ID { get; set; }
        public string CityCode { get; set; }
        public string GolfName { get; set; }
        public string Tel { get; set; }
        public string Fax { get; set; }
        public string Address { get; set; }
        public Nullable<System.DateTime> CreateDate { get; set; }
        public string CreateBy { get; set; }
        public Nullable<System.DateTime> UpdateDate { get; set; }
        public string UpdateBy { get; set; }

        public string CityName { get; set; }

        internal sealed class MSGF00ModelsMetadata
        {

            [Required(ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "MSGF00_SCR_txtCityCode")]
            public string CityCode;
            [Required(ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "MSGF00_SCR_txtGolfName")]
            public string GolfName;
            [Required(ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "MSGF00_SCR_txtTel")]
            public string Tel;
            public string Fax;          
            [Required(ErrorMessageResourceType = typeof(Resources.Resource), ErrorMessageResourceName = "MSGF00_SCR_txtAddress")]
            public string Address;
            public Nullable<System.DateTime> CreateDate;
            public string CreateBy;
            public Nullable<System.DateTime> UpdateDate;
            public string UpdateBy;
        }

    }
    public static class MSGF00Key
    {
        public const string ID = "ID";
        public const string GolfName = "GolfName";
        public const string CityCode = "CityCode";
        public const string Tel = "Tel";
        public const string Fax = "Fax";
        public const string Email = "Email";
        public const string Address = "Address";
        public const string CreateDate = "CreateDate";
        public const string CreateBy = "CreateBy";
        public const string UpdateDate = "UpdateDate";
        public const string UpdateBy = "UpdateBy";

        public const string City = "Code";
        public const string CityName = "Name";
    }
}